package com.minimalist.lindi.service;

import com.minimalist.common.entity.lindi.po.LindiPurchaseApplicationFile;
import com.minimalist.common.entity.lindi.vo.purchaseapplicationfile.LindiPurchaseApplicationFileVO;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 林地指标交易平台_购买申请文件 服务层。
 *
 * @author 11987
 * @since 2025-07-01
 */
public interface LindiPurchaseApplicationFileService extends IService<LindiPurchaseApplicationFile>{

    /**
     * 根据购买申请ID查询文件列表
     *
     * @param purchaseApplicationId 购买申请ID
     * @return 文件列表
     */
    List<LindiPurchaseApplicationFileVO> getFileListByPurchaseApplicationId(Long purchaseApplicationId);

    /**
     * 批量添加文件
     *
     * @param fileList 文件列表
     */
    void batchAddFiles(List<LindiPurchaseApplicationFileVO> fileList);

    /**
     * 根据购买申请ID删除文件
     *
     * @param purchaseApplicationId 购买申请ID
     */
    void deleteFilesByPurchaseApplicationId(Long purchaseApplicationId);

    /**
     * 根据文件ID删除文件
     *
     * @param fileId 文件ID
     */
    void deleteFileByFileId(Long fileId);
}
